export { }

// const PostStatus = {
//     Draft: 0,
//     Unpublished: 1,
//     Published: 2
// }

// enum PostStatus {
//     Draft = 0,
//     Unpublished = 1,
//     Published = 2
// }
//可以不指定 枚举值 默认从0累加  否则从第一个累加
//字符串枚举必须指定值
enum PostStatus {
    Draft = 0,
    Unpublished = 1,
    Published = 2
}
const post = {
    title: "Hello React",
    cosnt: "basic knowledge must be learned",
    status: PostStatus.Draft// 1//0//2
}
//枚举会入侵运行时代码 
//编译后生成键值对象
// 加 const之后 枚举会被移除  被常量替代
const enum PostStatus1 {
    Draft = 0,
    Unpublished = 1,
    Published = 2
}

    